package com.study.mybatisplus.controller;


import com.study.mybatisplus.beans.Employee;
import com.study.mybatisplus.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author jianghao
 * @since 2022-03-11
 */
@Controller
@RequestMapping("/employee")
public class EmployeeController {
    @Autowired
    private EmployeeService employeeService;

    public void selectById() {
        Employee employee = new Employee();
        Employee result = employee.selectById(1);
        System.out.println("查询结果:" + result);
    }
}

